#include "mainscene.h"
#include "config.h"
#include <QIcon>
Mainscene::Mainscene(QWidget *parent)
    : QWidget(parent)
{
    //调用初始化场景
    initScene();

}

Mainscene::~Mainscene()
{
}

void Mainscene::initScene()
{
    //设置窗口固定尺寸

    setFixedSize(GAME_WIDTH,GAME_HEIGHT);

    //设置标题
    setWindowTitle(GAME_TITLE);
    //加载图标
    setWindowIcon(QIcon(GAME_ICON));

}

